package com.base.taskreports.task.job;

import java.util.Date;
import java.util.List;

import com.base.taskreports.task.service.PqdService;
import org.springframework.beans.factory.annotation.Autowired;

import com.base.taskreports.common.utlis.DateUtil;
import com.base.taskreports.reports.service.TblDiscountTransService;
import com.base.taskreports.reports.service.impl.TIndicatorsServiceImpl;
import com.base.taskreports.task.entity.TimeTaskEntity;
import com.base.taskreports.task.entity.UserMasterEntity;
import com.base.taskreports.task.service.TimedTaskService;
import com.base.taskreports.task.service.UserMasterService;
import com.base.taskreports.task.service.UserSalveService;
import com.vip.saturn.job.AbstractSaturnJavaJob;
import com.vip.saturn.job.SaturnJobExecutionContext;
import com.vip.saturn.job.SaturnJobReturn;

public class PqdJob extends AbstractSaturnJavaJob {

	@Autowired
	private PqdService pqdService;
	
	@Override
	public SaturnJobReturn handleJavaJob(String jobName, Integer shardItem, String shardParam,
			SaturnJobExecutionContext shardingContext) throws InterruptedException {
		String strDate = shardingContext.getJobParameter();

		// 票劵-承兑 跑批
		pqdService.getPQD_M001(strDate);
		pqdService.getPQD_M002(strDate);
		pqdService.getPQD_M003(strDate);
		pqdService.getPQD_M004(strDate);
		pqdService.getPQD_M005(strDate);
		pqdService.getPQD_M006(strDate);
		pqdService.getPQD_M007(strDate);
		pqdService.getPQD_M008(strDate);
		pqdService.getPQD_M009(strDate);
		pqdService.getPQD_M010(strDate);
		pqdService.getPQD_M011(strDate);
		pqdService.getPQD_M012(strDate);
		pqdService.getPQD_M013(strDate);
		pqdService.getPQD_M014(strDate);

		// TODO Auto-generated method stub
		return new SaturnJobReturn("I am the return result of shard item " + shardItem);
	}

}
